wayland: Only set mapped state when mapped
authorJonas Ådahl <jadahl@gmail.com>
Thu, 19 Nov 2020 09:54:20 +0000 (10:54 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 08:46:39 +0000 (09:46 +0100)
commit528ec4ddedbf7600c9456e684e5fa82752d8ecf4
tree729171f6a3053f3a2821c05c98d1326ef9e1d205
parent366b946f5b8bbb26972a542e3505833753fc6fc5
wayland: Only set mapped state when mapped

Mapping a surface under Wayland is an asynchronous process, where one
creates a surface and commits an initial state without having drawn
anything, then waiting for a configuration, which then is acknowledged
and content is painted and committed. Not until having received this
configuration is a surface actually mapped, so wait with setting the
mappedness until this.
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkprivate-wayland.h
gdk/wayland/gdksurface-wayland.c